package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;

public interface MemberMapper extends Mapper<Member> {
    /**
     * @Author: JASON
     * @Date: 15:59 2021/1/15
     * @Parms [endDate]
     * @ReturnType: int
     * @Description: 根据月份查找人数
    */
    int countByMonth(String endDate);

    /**
     * @Author: JASON
     * @Date: 20:56 2021/1/15
     * @Parms [startTime, endTime]
     * @ReturnType: void
     * @Description: 根据注册时间查找会员个数
    */
    Long countByRegTimeRange(Date startTime, Date endTime);

    /**
     * @Author: JASON
     * @Date: 17:29 2021/1/16
     * @Parms [format]
     * @ReturnType: java.lang.Long
     * @Description: 根据日期查总数
    */
    Long countByRegTimeBefore(@Param("date") String date);
}

